package cn.mavor.day0903;

import java.util.Arrays;
import java.util.Scanner;

public class order {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int[] numbers = new int[3];
        for (int i = 0; i < numbers.length; i++) {
            System.out.print("请输入第 " + (i + 1) + " 个数: ");
            numbers[i] = sc.nextInt();
        }
        Arrays.sort(numbers);
        System.out.println("从小到大排序后的结果为:");
        for (int number : numbers) {
            System.out.print(number + " ");
        }
    }
}


